/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-03-25
 * Time: 20:45
 */
class Person {
    int age;
    String name;
    double score;
    public Person () {

    }
    public Person( int age,String name,double score) {
        this.age = age;
        this.name = name;
        this.score = score;
    }
    public Person( int age,String name) {
        this.age = age;
        this.name = name;
        this.score = score;
    }
    public Person( int age) {
        this.age = age;
        this.name = name;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Person{" +
                "年龄=" + age +
                ", 姓名='" + name + '\'' +
                ", 成绩=" + score +
                '}';
    }
}
public class Demo1 {
    public static void main(String[] args) {
        Person person = new Person(10,"大黄",10.5);
        System.out.println(person.toString());
    }


}
